<?php

Loader::using("ext::libs::AssetsLoader");

/**
 * Description of BaseResourcesLoaderPlugin
 *
 * @author JeyDotC
 * @export Plugins
 */
class BaseResourcesLoaderPlugin extends UnderscorePlugin implements BeforeTask {

    public function beforeTask($task) {
        AssetsLoader::css("whiteLabel/style.css");
        AssetsLoader::css("whiteLabel/ie.css");
        AssetsLoader::css("whiteLabel/light/theme.css");

        if (ModulesContext::instance()->getConfig()->debug) {
//            AssetsLoader::script("Require.jQuery.js");
//            AssetsLoader::script("jQuery.js");
//            AssetsLoader::script("jQuery.ui.js");
        }

//        AssetsLoader::script("WhiteLabel.functions.js");
//        AssetsLoader::script("WhiteLabel.plugins.js");
//        AssetsLoader::script("WhiteLabel.validate.js");components/com_ghost/assets/js/
        
        $base = JURI::base();
        
        //Custom scripts.
//        AssetsLoader::script("init.js");
//        AssetsLoader::sciptTag("
//        require.config({
//            baseUrl: '{$base}components/com_acaweb/assets/js/',
//        });
//            ");

        return true;
    }

}
?>

